﻿using Admin.Core.Common.BaseModel;
using Admin.Core.Model.Admin;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Admin.Core.Model.Xsproject
{
    /// <summary>
    /// 销售项目主表
    /// </summary>
    [Table(Name = "XS_PROJECT")]
    public class ProjectEntity : EntityAdd, IEntitySoftDelete
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        [Column(Name = "NAME")]
        public string Name { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        [Description("是否删除")]
        [Column(Name = "ISDELETED")]//
        public bool IsDeleted { get; set; } = false;


        /// <summary>
        /// 状态  0 新建  1 执行中  2 已完成
        /// </summary>
        [Column(Name = "STATUS")]//
        public int Status { get; set; }

        [Column(Name = "MODELID")]//
        public long ModelId { get; set; }

        public DictionaryEntity Model { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "REMARK")]//
        public string Remark { get; set; }

        /// <summary>
        /// 项目的所有任务
        /// </summary>
        public ICollection<TaskItemEntity> TaskItems { get; set; }

        

    }
}
